<template>
  <div>App</div>
  <!-- 
    Vue3: v-model绑定modelValue属性和update:modelValue自定义事件
   -->
  <Child v-model="count" />

  <!-- 
    v-model:xxx="xxx" 
      绑定xxx属性和update:xxx自定义事件
   -->
  <Son v-model:count="count" />
</template>

<script lang="ts" setup>
import { ref } from "vue";
import Child from "./Child.vue";
import Son from "./Son.vue";

const count = ref(0);
</script>

<style></style>
